package cn.edu.eight.food.service.Impl;


import cn.edu.eight.food.dao.OfNoticeMapper;
import cn.edu.eight.food.model.OfNotice;
import cn.edu.eight.food.service.ofNoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ofNoticeServiceImpl implements ofNoticeService {
    @Autowired
    OfNoticeMapper ofNoticeMapper;

    @Override
    public int insert(OfNotice record) {
        return ofNoticeMapper.insert(record);
    }

    @Override
    public List<OfNotice> noticeList(String title) {
        return ofNoticeMapper.noticeList(title);
    }

    @Override
    public int deleteNotice(String noticeId) {
        return ofNoticeMapper.deleteNotice(noticeId);
    }

    @Override
    public int updateNotice(OfNotice record) {
        return ofNoticeMapper.updateNotice(record);
    }
}
